<?php
include 'lang/en.php';
include 'core/filesize.php';
include 'core/user.php';
$loggedin=false;
$version='MintOS-19-05-2013_22-22'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<meta name="description" content="JavaScript desktop environment built with jQuery." />
<?php
if (!$_SESSION['loggedin']) {
 echo '<title>Login to MintOS</title>';
 header('Location: login.php');
}
else {
echo '<title>MintOS</title>';
echo '
<link rel="stylesheet" href="assets/css/reset.css" />
<link rel="stylesheet" href="assets/css/desktop.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="assets/css/ie.css" />
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script>
  !window.jQuery && document.write(\'<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>\');
  !window.jQuery.ui && document.write(\'<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>\');
</script>
<script src="assets/js/jquery.desktop.js"></script>
<style>
html, body {height:100%}
</style>
</head>
<body>

<!-- Startup sound -->
<audio autoplay>
<source src="sounds/startup.mp3" type="audio/mpeg">
<source src="sounds/startup.ogg" type="audio/ogg">
</audio>

<!-- Desktop icons -->

<div class="abs" id="wrapper">
  <div class="abs" id="desktop">
    <a class="abs icon" style="left:20px;top:20px;" href="#icon_dock_computer">
      <img src="assets/images/icons/icon_32_computer.png" />
      '.$lang_computer.'
    </a>
    <a class="abs icon" style="left:20px;top:100px;" href="#icon_dock_drive">
      <img src="assets/images/icons/icon_32_drive.png" />
      '.$lang_hdd.'
    </a>
    <a class="abs icon" style="left:20px;top:180px;" href="#icon_dock_network">
      <img src="assets/images/icons/icon_32_network.png" />
      '.$lang_network.'
    </a>
	 	<a class="abs icon" style="left:20px;top:260px;" href="#icon_dock_home">
			<img src="assets/images/icons/icon_22_home.png" />
			'.$lang_documents.'
	 	</a>
		<a class="abs icon" style="left:20px;top:340px;" href="#icon_dock_notez">
			 <img src="assets/images/icons/icon_22_notez.png" />
				Notez
		</a>';
			include 'apps/hdd.php';
			include 'apps/computer.php';
			include 'apps/network.php';
			include 'apps/home.php';
			include 'apps/notez.php';
			include 'apps/syssettings.php';
		echo '</div>
	 <div class="abs" id="bar_top">
    <span class="float_right" id="clock"></span>
    <ul>
      <li>
        <a class="menu_trigger" href="#">
  		    <img	src="assets/images/misc/start.png"
					width="22"
					height="22"
					onmouseover="this.src=\'assets/images/misc/start_over.png\';"
					onmouseout="this.src=\'assets/images/misc/start.png\';"
					onclick="this.src=\'assets/images/misc/start_pressed.png\';"
					onmouseup="this.src=\'assets/images/misc/start.png\';"
					/> MintOS
				</a>
        <ul class="menu">
			<li>
				<span style="padding-left:10px;text-shadow:none;color:#000;font-weight:bold;">Account</span>
				<ul style="padding-left:15px;text-shadow:none;">
					<li>
						<a href="#icon_dock_syssettings">Settings</a>
					</li>
					
					<li>
						<a href=\'logout.php\'>Logout</a>
					</li>
				</ul>
			</li>
        </ul>
      </li>
    </ul>
  </div>
  <div class="abs" id="bar_bottom">
    <a id="show_desktop" href="#" style="float: left;" title="Show Desktop">
			<img src="assets/images/icons/icon_22_desktop.png" />
    </a>
    <ul id="dock">
      <li id="icon_dock_computer">
        <a href="#window_computer">
          <img src="assets/images/icons/icon_22_computer.png" />
          Computer
        </a>
      </li>
      <li id="icon_dock_drive">
        <a href="#window_drive">
          <img src="assets/images/icons/icon_22_drive.png" />
          Hard Drive
        </a>
      </li>
      <li id="icon_dock_network">
        <a href="#window_network">
          <img src="assets/images/icons/icon_22_network.png" />
          Network
        </a>
      </li>
			<li id="icon_dock_home">
				<a href="#window_home">
					<img src="assets/images/icons/icon_22_home.png" />
					Documents
				</a>
			</li>
			<li id="icon_dock_notez">
			  <a href="#window_notez">
					<img src="assets/images/icons/icon_22_notez.png" />
					Notez
				</a>
			</li>
			<li id="icon_dock_syssettings">
			  <a href="#window_syssettings">
					<img src="assets/images/icons/icon_22_notez.png" />
					System Settings
				</a>
			</li>
    </ul>
		<!--<a class="float_right" href="http://www.firehost.com/?ref=spon_nsmith_desktop-sonspring" title="Secure Hosting">
      <img src="assets/images/misc/firehost.png" />
    </a>-->
  </div>
</div>';
}
echo "test";
?>
</body>
</html>